<template>
  <el-row>
    <el-col v-for="(item,i) in reslutData" :key="i" :span="7">{{ i===0?'主需求':'次需求'+i }}:{{ item.projectName }}</el-col>
    <!-- <el-col :span="6">次需求1</el-col>
    <el-col :span="6">次需求2</el-col> -->
  </el-row>
</template>

<script>
export default {
  props: {
    reslutId: {
      type: String,
      default: '',
    },
  },
  data() {
    return {
      reslutData: [],
    };
  },
  mounted() {
    this.fetchDetails();
  },
  methods: {
    fetchDetails() {
      this.$api['doctor/consulting/hospitalTriageDetails']({ advisoryId: this.reslutId }).then(res => {
        if (res.code !== 200) return this.$msg.error('获取咨询需求详细失败');
        this.reslutData = res.data;
        console.log(res.data, this.reslutData, '获取咨询需求详细成功');
      });
    },
  },
};
</script>

<style>

</style>
